// 引入defineStore用于创建store
import { defineStore } from "pinia";

// 定义并暴露一个store
export const useMapStore = defineStore("defineMap", {
  // 动作
  actions: {},
  // 状态
  state() {
    return {
      addDialogVisible: false,
      openType: "",
      ruleAddForm: {
        owner: "",
        IDNumber: "",
        licensePlateNumber: "",
      },
      total: 0,
      currentPage: 1,
      pageSize: 10,
      orderBy: "licensePlateNumber",
      sort: "descending",
      tableData: [],
      loading: true
    };
  },
  // 计算
  getters: {},
});